[package]
name = "api"
version = "1.6.1"
authors = [
    "Andrey Vasnetsov <andrey@vasnetsov.com>",
    "Qdrant Team <info@qdrant.tech>",
]
license = "Apache-2.0"
edition = "2021"

[features]
tracing = ["dep:tracing", "segment/tracing"]

[dependencies]
log = "0.4"
env_logger = "0.10.0"
tonic = { version = "0.9.2", features = ["gzip", "tls"] }
prost = "0.11.9"
prost-types = "0.11.9"
serde = { version = "~1.0", features = ["derive"] }
serde_json = "~1.0"
schemars = { version = "0.8.15", features = ["uuid1", "preserve_order", "chrono"] }
uuid = { version = "1.4", features = ["v4", "serde"] }
tower = "0.4.13"
tokio = "1.32.0"
rand = "0.8.5"
chrono = { version = "~0.4", features = ["serde"] }
thiserror = "1.0"
parking_lot = "0.12"
validator = { version = "0.16", features = ["derive"] }

common = {path = "../common/common"}
segment = {path = "../segment"}

tracing = { version = "0.1", features = ["async-await"], optional = true }

[build-dependencies]
tonic-build = { version = "0.10.0", features = ["prost"] }
prost-build = { version = "0.11.8", features = ["cleanup-markdown"] }

[dev-dependencies]
tokio = { version = "~1.32", features = ["full"] }
